package EVO.jedis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.Transaction;

public class JedisTransactionTest {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("192.168.28.128",6379);
        System.out.println(jedis.ping());
        Transaction tran = jedis.multi();
        tran.set("s2","jojo");
        tran.set("s3","zhangsan");
        tran.del("s3");
        tran.exec();
        System.out.println(jedis.keys("*"));

    }
}
